package com.zts.modules.sys.service;

import com.zts.base.data.CrudService;
import com.zts.modules.sys.entity.Resource;

import java.util.List;

/**
 * Created by jisd on 2017/6/16.
 */
public interface ResourceService extends CrudService<Resource> {

    List<Resource> getByRoles(List<Long>  roleIds,String type,String resourceCode);
    List<Resource> getByRoles(Long roleId,String type);

    int addRoleResource(Long roleIds,  List<Long> resourceIds);
    int deleteRoleResource( Long roleIds,  List<Long> resourceIds);
}
